package com.yanqu.road.entity.activity.tonbing;


import com.yanqu.road.entity.activity.tonbing.data.CrossTonBingRank;

import java.util.Comparator;

//阵营积分排行现在又要用战功再排
public class CrossTonBingRankCampIntSort implements Comparator<CrossTonBingRank> {
    @Override
    public int compare(CrossTonBingRank o1, CrossTonBingRank o2) {
        if (o2.getValue() != o1.getValue()) {
            return Long.compare(o2.getValue(), o1.getValue());
        }
        if (o2.getZhangong() != o1.getZhangong()) {
            return Long.compare(o2.getZhangong(), o1.getZhangong());
        }
        return Long.compare(o1.getTime(), o2.getTime());
    }
}
